package org.example.schoolbus;

import org.example.schoolbus.controller.InfoEditingController;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.HashMap;
import java.util.Map;

@SpringBootTest
public class InforEditingtest {
    @Autowired
    private InfoEditingController infoEditingController;
    @Test
    public void testinfoEditing() {
        Map<String,Object>map = new HashMap<>();
        map.put("username","user1");
        map.put("usersex","0");//0代表women，1是man
        map.put("userbirthday","2024-12-27");
        map.put("useraddress","address1");
        map.put("userphone","123456789");
        map.put("useremail","user1@gmail.com");
        System.out.println(infoEditingController.InfoEditing(map));
    }
}
